package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/5/10 11:20
 * Dest  我的预约
 */

public class MyVisitorBean implements Parcelable {

private int visitNum;
private  int cancelNum;
private  int appiontNum;

public void setSubVisitNum(){
    if (visitNum>0){
    visitNum--;

    }

}
public void setSubCancelNum(){
    if (cancelNum>0){
    cancelNum--;

    }
}

    public int getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(int visitNum) {
        this.visitNum = visitNum;
    }

    public int getCancelNum() {
        return cancelNum;
    }

    public void setCancelNum(int cancelNum) {
        this.cancelNum = cancelNum;
    }

    public int getAppiontNum() {
        return appiontNum;
    }

    public void setAppiontNum(int appiontNum) {
        this.appiontNum = appiontNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.visitNum);
        dest.writeInt(this.cancelNum);
        dest.writeInt(this.appiontNum);
    }

    public MyVisitorBean() {
    }

    protected MyVisitorBean(Parcel in) {
        this.visitNum = in.readInt();
        this.cancelNum = in.readInt();
        this.appiontNum = in.readInt();
    }

    public static final Parcelable.Creator<MyVisitorBean> CREATOR = new Parcelable.Creator<MyVisitorBean>() {
        @Override
        public MyVisitorBean createFromParcel(Parcel source) {
            return new MyVisitorBean(source);
        }

        @Override
        public MyVisitorBean[] newArray(int size) {
            return new MyVisitorBean[size];
        }
    };
}
